package com.yingsheng.bi.hks.template.biz;

import com.yingsheng.bi.hks.template.events.ElementEvent;
import com.yingsheng.bi.hks.template.processor.ElementProcessor;
import org.springframework.stereotype.Component;

@Component
public class DataReplaceElementProcessor implements ElementProcessor {

    @Override
    public void exec(ElementEvent event) {
        Object value = event.getInput();
        if (value != null) {
            event.setOutput("data");
        }
    }
}
